package com.yt.claim.models.vo;

import com.yt.claim.models.entity.ClaimInfoEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class ClaimVO {

    /**
     * 来自ClaimInfoEntity的所有字段
     */
    private Integer claimId;
    private Integer policyId;
    private Long userId;
    private String claimNo;
    private Date accidentTime;
    private Integer reasonAttrId;
    private String hospitalName;
    private Date treatmentTime;
    private String diagnosisResult;
    private BigDecimal treatmentAmount;
    private String bankName;
    private String bankAccount;
    private String accountName;
    private String claimMaterials;
    private Byte materialCount;
    private Integer statusAttrId;
    private Date createTime;
    private Date updateTime;
    private Byte isDelete;

    /**
     * 补充关联表的扩展信息
     */
    private String policyNo;      // 保单编号，从insurance_policy表关联获取
    private String userName;      // 投保人姓名，从user表关联获取
    private String reasonName;    // 出险原因名称，从sys_attribute表关联获取
    private String statusName;    // 索赔状态名称，从sys_attribute表关联获取
}